package com.xzgj.fmmall.entity;

import com.xzgj.fmmall.entity.Interests;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "UserAddr对象",description = "用户地址信息")
public class UserAddr {

    @ApiModelProperty(dataType = "addr_id",value = "用户地址id",required = true)
    private String addr_id;
    @ApiModelProperty(dataType = "user_id",required = true,value = "用户id")
    private Integer user_id;
    @ApiModelProperty(dataType = "receiver_name",required = true,value = "收货人姓名")
    private String receiver_name;
    @ApiModelProperty(dataType = "receiver_mobile",required = true,value = "收货人手机")
    private String receiver_mobile;
    @ApiModelProperty(dataType = "province",required = true,value = "省份")
    private String province;
    @ApiModelProperty(dataType = "city",required = true,value = "城市")
    private String city;
    @ApiModelProperty(dataType = "area",required = true,value = "区县")
    private String area;
    @ApiModelProperty(dataType = "addr",required = true,value = "用户详细地址")
    private String addr;
    @ApiModelProperty(dataType = "post_code",required = true,value = "邮编")
    private String post_code;
    @ApiModelProperty(dataType = "status",required = true,value = "状态 1.正常；0.无效")
    private String status;
    @ApiModelProperty(dataType = "common_addr",required = true,value = "是否默认地址 1.是；0.否")
    private String common_addr;
    @ApiModelProperty(dataType = "create_time",required = true,value = "注册时间")
    private Date create_time;
    @ApiModelProperty(dataType = "update_time",required = true,value = "更新时间")
    private Date update_time ;

    @Override
    public String toString() {
        return "UserAddr [addr_id=" + addr_id +
                "user_id=" + user_id +
                ", receiver_name=" + receiver_name +
                ", receiver_mobile=" + receiver_mobile +
                ", province=" + province +
                ", city=" + city +
                ", area=" + area +
                ", addr=" + addr +
                ", post_code=" + post_code +
                ", status=" + status +
                ", common_addr=" + common_addr +
                ", create_time=" + create_time  + "]";
    }

}
